// 导入请求实例对象
import request from "@/utils/request";

// 封装请求方法
export const getHome = (params) => {
  return request({
    url: "/api/index/index",
    params,
  });
};

// 封装请求方法
export const getList = (params) => {
  return request({
    url: "/api/brand/list",

    params,
  });
};
//品牌详情
export const getListInfo = (id) => {
  return request({
    url: "/api/brand/detail/?id=" + id,
  });
};

//品牌详情列表
export const getListData = (id) => {
  return request({
    url: "/api/goods/list/?brandId=" + id,
  });
};
//人气列表
export const getListUser = () => {
  return request({
    url: "/api/goods/hot",
  });
};
//
export const getAllList = (params) => {
  return request({
    url: "/api/goods/list",
    params,
  });
};
